package seres;

public class Marciano extends Guerrero {

    private static int total = 0;
    //private String soy;

    public Marciano(String soy) {
        super(soy);
        //this.soy = soy;
        total++;

    }

    @Override
    public void recibeDisparo(int i) {
        if (vivo && blanco == i) {
            super.recibeDisparo(i);
            total--;
        }
    }

    public static int getTotal() {
        return total;
    }
}
